package vip.youngboy.freejump.handler.event;

import org.activiti.engine.delegate.event.ActivitiEntityEvent;
import org.activiti.engine.delegate.event.ActivitiEvent;
import vip.youngboy.freejump.listener.ExamineRecorderHandler;

public abstract class AbstractTaskEventHandler implements ExamineRecorderHandler {

    @Override
    public void handleEvent(ActivitiEvent event) {
        // do something
        ActivitiEntityEvent entityEvent = (ActivitiEntityEvent) event;
        handleTaskEvent(entityEvent);

        //do something
    }

    /**
     * 处理任务时间
     *
     * @param event 任务事件对象
     */
    public abstract void handleTaskEvent(ActivitiEntityEvent event);

}
